package com.yonyou.sto.modules.ims.mapper;

import com.yonyou.sto.modules.ims.model.ImsInvoiceItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yonyou.sto.modules.ims.model.ImsManualInvoice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author aegon
 * @since 2020-09-15
 */
public interface ImsInvoiceItemMapper extends BaseMapper<ImsInvoiceItem> {

    List<ImsInvoiceItem> listByBillIds(@Param("collect") List<String> collect);

    void updateStatus(@Param("ids") List<String> ids, @Param("code") int code);

    List<ImsInvoiceItem> listByManualIds(@Param("ids")List<String> ids);

    List<ImsInvoiceItem> listByBillId(@Param("billId") String billId);

    boolean updateStatusApply(@Param("code") int code, @Param("id") String id,@Param("applyname")String applyname,@Param("applydate")String date,@Param("applycode")String applycode,@Param("billType") int billType,@Param("applyje")double applyje,@Param("contain")int contain);

}
